using System;
using System.Collections.Generic;
using Dict.DataModel;

namespace Dict.Dao
{
    public class TableEveryoneBenefitDao:DaoBase<TableEveryoneBenefit>
    {
        public override void AddPrimaryIndex(TableEveryoneBenefit model)
        {
            cachePrimary[model.count.ToString()] = model;
        }

        public override string GetFileName()
        {
            return "TableEveryoneBenefit.txt";
        }

        protected override TableEveryoneBenefit ParseRowData(string[] rowData)
        {
            TableEveryoneBenefit data = new TableEveryoneBenefit();

            if (string.IsNullOrEmpty(rowData[0]))
            {
                data.count = 0;
            }
            else
            {
                data.count = int.Parse(rowData[0]);
            }
			data.reward = rowData [1];

            return data;
        }



    }

}
